package com.xiaojie.sqlSession;

import com.xiaojie.pojo.Configuration;

/**
 * @ClassName DefaultSqlSessionFactory
 * @Author jiege
 * @Date 2021/5/2 21:25
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
